import request from '@/config/axios'

export interface directoryVO {
  catalogId: number
  catalogName: string
  status: string
}
// 查询数据管理列表
export const getResourceDirectoryPage = (params: PageParam) => {
  return request.get({ url: '/gov/resource-directory/page', params })
}
export const getResourceDirectoryAll = () => {
  return request.get({ url: '/gov/resource-directory/getAll' })
}
// 用户状态修改
export const updateResourceDirectoryStatus = (catalogId: number, status: number) => {
  const data = {
    catalogId,
    status
  }
  return request.put({ url: '/gov/resource-directory/update-status', data: data })
}

// 接口设置
export const setInterface = (catalogId: number, infoId: number) => {
  const data = {
    catalogId,
    infoId
  }
  return request.post({ url: '/gov/resource-directory/set-interface', data: data })
}
